#include"task.hpp"
#include"thread_pool.hpp"
#include<unistd.h>

int main()
{
  //ThreadPool<Task> tp;
  
  ThreadPool<Task>* tp=ThreadPool<Task>::get_instance();
  tp->Init(5);
  const char * arr="+-*/%";
  int i=0;
  int sec=0;
  for(i=1;i<100;i++)
  {
    sec=i%5;
    Task t(i,i-1,*(arr+sec));
    tp->PushTask(t);
  }

  sleep(100);
  return 0;
}
